<!DOCTYPE html>
<html>
<head>
	<title>隐蔽工程采集记录</title>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
	<link rel="stylesheet" href="../../css/bootstrap.min.css">
	<link rel="stylesheet" href="../../css/font-awesome.min.css">
	<link rel="stylesheet" href="../../plugins/jqgrid/ui.jqgrid-bootstrap.css">
	<link rel="stylesheet" href="../../plugins/ztree/css/metroStyle/metroStyle.css">
	<link rel="stylesheet" href="../../css/main.css">
	<script src="../../libs/jquery.min.js"></script>
	<script src="../../plugins/layer/layer.js"></script>
	<script src="../../libs/bootstrap.min.js"></script>
	<script src="../../libs/vue.min.js"></script>
	<script src="../../plugins/jqgrid/grid.locale-cn.js"></script>
	<script src="../../plugins/jqgrid/jquery.jqGrid.min.js"></script>
	<script src="../../plugins/ztree/jquery.ztree.all.min.js"></script>
	<script src="../../js/common.js"></script>
</head>
<style type="text/css">

	.htc {
		padding-top: 50px;
	}

	.col-sm-10.pror {
		/*float: left;*/
		/*width: 15%;*/
		/*padding-left: -130px;*/
		margin-left: -20px;
	}

	.col-sm-2.control-label.prol {
		width: 110px;
		height: 20px;
		text-align: right;
		margin-left: -20px;
		padding-right: 24px;
		padding-top: 5px;
	}

	.form-group.c1 {
		/* border: 1px solid red; */
		/* height: 35px; */
		width: 261px;
		float: left;
	}

</style>
<body>
<div id="rrapp" v-cloak>
	<div v-show="showList">
		<div class="grid-btn">

			<div class="form-group c1">
				<div class="col-sm-2 control-label prol">项目名称</div>
				<div class="col-sm-10 pror">
					<!--<select class="form-control" v-model="q.pGuid"  placeholder="项目名称" id="projectIdquesr"   >-->
					<!--<option v-for="d in allpro" :value="d.guid">-->
					<!--{{d.pBName}}</option>-->
					<!--</select>-->
					<!--<input type="text" class="form-control" v-model="q.pBName" placeholder="项目名称"/>-->
					<input type="text" class="form-control"  v-model="q.psname"	@click="showprolist" readonly="true" />

				</div>
			</div>

			<div class="form-group c1">
				<div class="col-sm-2 control-label prol">记录类别</div>
				<div class="col-sm-10 pror">
					<select class="form-control" v-model="q.mCType">
						<option value="">全部</option>
						<option v-for="f in check_type" :value="f.dKey">
							{{f.dValue}}</option>
					</select>
				</div>
			</div>

			<div class="form-group c1">
				<div class="col-sm-2 control-label prol">记录方式</div>
				<div class="col-sm-10 pror">
					<select class="form-control" v-model="q.mCMode"  placeholder="项目名称" id="projectIdquer"  >
						<option value="">全部</option>
						<option v-for="d in mode_type" :value="d.dKey">
							{{d.dValue}}</option>
					</select>
				</div>
			</div>

			<div class="form-group c1">
				<div class="col-sm-2 control-label prol">编号/名称</div>
				<div class="col-sm-10 pror">
					<!--<select class="form-control" v-model="q.mCname"  placeholder="项目名称" id="projectIdquers"   >
						<option v-for="d in allpro" :value="d.guid">
							{{d.pBName}}</option>
					</select>-->
					<input type="text" class="form-control" v-model="q.mCname" placeholder="编号/名称"/>

				</div>
			</div>





			<div class="htc">
				<a class="btn btn-default" @click="reload">查询</a>
				<!--<a v-if="hasPermission('csg:cmiddlecheck:save')" class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>-->
				<a v-if="hasPermission('csg:cmiddlecheck:update')" class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
				<a v-if="hasPermission('csg:cmiddlecheck:delete')" class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>

				<a class="btn btn-primary wzhz" onclick="exportCmiddlecheck()"><i class="fa fa-pencil-square-o"></i>&nbsp;检查详情导出</a>
				<a class="btn btn-primary xqdc" onclick="exportCmiddleImg()"><i class="fa fa-trash-o"></i>&nbsp;照片导出</a>
			</div>


		</div>
		<table id="jqGrid"></table>
		<div id="jqGridPager"></div>
	</div>

	<div v-show="!showList" class="panel panel-default">
		<div class="panel-heading">{{title}}</div>
		<form class="form-horizontal">
			<!--<div class="form-group" hidden>
				<div class="col-sm-2 control-label">项目guid</div>

				<div class="col-sm-10">
					<input type="text" class="form-control" v-model="cMiddleCheck.pGuid" placeholder="项目guid"/>
				</div>
			</div>
			<div class="form-group" hidden>
				<div class="col-sm-2 control-label">经度</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" v-model="cMiddleCheck.mCLongitude" placeholder="经度"/>
				</div>
			</div>
			<div class="form-group" hidden>
				<div class="col-sm-2 control-label">纬度</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" v-model="cMiddleCheck.mCLatitude" placeholder="纬度"/>
				</div>
			</div>-->

			<div class="form-group" >
				<div class="col-sm-2 control-label">记录方式</div>
				<div class="col-sm-10">
					<!--<input type="text" class="form-control" v-model="cMiddleCheck.mCMode" placeholder="记录方式(施工/现场) 数据字典mode_type"/>-->
					<select class="form-control" v-model="cMiddleCheck.mCMode" readonly="true">
						<option v-for="f in mode_type" :value="f.dKey">
							{{f.dValue}}</option>
					</select>

				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-2 control-label">记录类别</div>
				<div class="col-sm-10">
					<!--<input type="text" class="form-control" v-model="cMiddleCheck.mCType" placeholder="记录类别(杆塔/配电设备) 数据字典 check_type"/>-->
					<select class="form-control" v-model="cMiddleCheck.mCType">
						<option v-for="f in check_type" :value="f.dKey">
							{{f.dValue}}</option>
					</select>
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-2 control-label">编号/名称</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" v-model="cMiddleCheck.mCName" placeholder="编号/名称"/>
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-2 control-label">电杆高度</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" v-model="cMiddleCheck.mCHigh" placeholder="电杆高度"/>
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-2 control-label">检查日期</div>
				<div class="col-sm-10">
					<!--<input type="text" class="form-control" v-model="cMiddleCheck.mCTime" placeholder="检查日期"/>-->
					<input type="date" class="form-control" v-model="cMiddleCheck.mCTime" placeholder="检查日期"/>

				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-2 control-label">审核结果</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" v-model="cMiddleCheck.mCResult" placeholder="审核结果" readonly/>
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-2 control-label">采集人名称</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" v-model="cMiddleCheck.mCUsername" placeholder="采集人名称" readonly/>
				</div>
			</div>
			<!--<div class="form-group" hidden>
				<div class="col-sm-2 control-label">采集人</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" v-model="cMiddleCheck.mCUser" placeholder="采集人"/>
				</div>
			</div>
			<div class="form-group" hidden>
				<div class="col-sm-2 control-label">数据状态</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" v-model="cMiddleCheck.mCDatastate" placeholder="数据状态"/>
				</div>
			</div>-->


			<div class="form-group">
				<div class="col-sm-2 control-label"></div>
				<input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
				&nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
			</div>
		</form>
	</div>

	<div id="deptLayermy" style="display: none;padding:10px; ">

		<div class="grid-btn">

			<div class="form-group col-sm-3">
				<input type="text"  class="form-control" v-model="q.ppppBName"  placeholder="项目名称">
			</div>
			<a class="btn btn-default" @click="reloadpro">查询</a>
		</div>


		<table id="jqGrid1" ></table>
		<div id="jqGridPager1" ></div>
	</div>

</div>

<script src="../../js/modules/csg/cmiddlecheck.js"></script>
</body>
</html>